<?php

class User_Action_Admin_Manage_Index extends Action_Admin
{

	function execute($request, $initial = false, $script = NULL)
	{

		if ($initial = true)
		{
			Agilet::setVar('breadcrum', array(
				array(
					'url' => 'admin/user',
					'label' => 'User'
				),
				array(
					'url' => 'admin/user/manage',
					'label' => 'Manage'
				),
			));
		}

		$table = Model::getTable('user');

		$select = $table -> select();

		$items = Paging::factory($select);

		$request -> response = View::render($script = 'user/html/admin/manage/index', $data = array(
			'items' => $items,
			'title' => 'Manage',
			'toolbar' => 'admin/user/manage',
		));

	}

}
